package com.fh.util;

import java.util.List;

/**
 * dataTables分页工具类
 * 该工具类中所有属性均与dataTables所需属性对应,不能修改参数名称
 * 否则会导致dataTables数据无法加载
 * @author
 *
 * @param <T>
 */
public class DataTablePageUtil<T> {
	
	//datatables分页自带的属性,不用管它
	private Integer draw;
	
	//开始下标条数(datatables固定属性,不能改)
	private Integer start;
	
	// 显示数量(datatables固定属性,不能改)
	private Integer length;
	
	// 过滤后的总条数(datatables固定属性,不能改)
	private Integer recordsFiltered;
	
	// 总条数(datatables固定属性,不能改)
	private Integer recordsTotal;
	
	//数据集合(datatables固定属性,不能改)
	private List<T> data;

	//排序的列
	private Integer orderColumn;
	//排序的方式
	private String orderType;

	public Integer getOrderColumn() {
		return orderColumn;
	}

	public void setOrderColumn(Integer orderColumn) {
		this.orderColumn = orderColumn;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public Integer getDraw() {
		return draw;
	}

	public void setDraw(Integer draw) {
		this.draw = draw;
	}


	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLength() {
		return length;
	}

	public void setLength(Integer length) {
		this.length = length;
	}

	public Integer getRecordsFiltered() {
		return recordsFiltered;
	}

	public void setRecordsFiltered(Integer recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}

	public Integer getRecordsTotal() {
		return recordsTotal;
	}

	public void setRecordsTotal(Integer recordsTotal) {
		// 过滤后的总条数(避免麻烦,直接一次性设置)
		this.recordsFiltered = recordsTotal;
		
		this.recordsTotal = recordsTotal;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}



	
}
